package com.huadi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * (Expenditure)表实体类
 *
 * @author makejava
 * @since 2023-07-03 15:26:48
 */
@SuppressWarnings("serial")
public class Expenditure extends Model<Expenditure> {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long unitId;

    private Double expenditureAmount;

    private Date expenditureDate;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public Double getExpenditureAmount() {
        return expenditureAmount;
    }

    public void setExpenditureAmount(Double expenditureAmount) {
        this.expenditureAmount = expenditureAmount;
    }

    public Date getExpenditureDate() {
        return expenditureDate;
    }

    public void setExpenditureDate(Date expenditureDate) {
        this.expenditureDate = expenditureDate;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Expenditure{" +
                "id=" + id +
                ", unitId=" + unitId +
                ", expenditureAmount=" + expenditureAmount +
                ", expenditureDate=" + expenditureDate +
                '}';
    }
}

